package com.learn.mybatis.dao;

import com.learn.mybatis.model.Classes;

import java.sql.SQLException;

/**
 * @author wangxing
 * @date 2020/4/28.
 */
public interface ClassMapper {
    /**
     * 根据class id查询class的信息
     *
     * @param id
     * @return
     * @throws SQLException
     */
    public Classes selectClassById(Integer id) throws SQLException;

    /*
     * 根据 id 查询班级 Classes 和它的学生
     * @param id
     * @return
     * @throws Exception
     */
    public Classes selectClassAndStudentsById(Integer id) throws Exception;
}
